package com.c.c_common.mvp.ui;


import android.os.Bundle;

import androidx.annotation.Nullable;

import com.c.c_common.mvp.contract.BaseContract;


public abstract class MvpActivity<Presenter extends BaseContract.Presenter> extends CActivity implements BaseContract.View<Presenter> {
    protected Presenter mPresenter;

    protected abstract Presenter initPresenter();

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        mPresenter = initPresenter();
        super.onCreate(savedInstanceState);
    }
}
